﻿@model Presentation.Models.Film

@{
    ViewBag.Title = "Modification d'un film";
}

<h2>Modification du film @Model.Titre</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Film</legend>

        @Html.HiddenFor(model => model.Id)

        <div class="editor-label">
            <!--@Html.LabelFor(model => model.Titre)-->
            Titre du film
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Titre)
            @Html.ValidationMessageFor(model => model.Titre)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DatePublication)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DatePublication)
            @Html.ValidationMessageFor(model => model.DatePublication)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Prix)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Prix)
            @Html.ValidationMessageFor(model => model.Prix)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Genre)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Genre)
            @Html.ValidationMessageFor(model => model.Genre)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
